package club.grc.service.gateway.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RefreshScope//开启动态加载nacos配置中心配置
@RestController
public class TestController {

    @Value("${name}")
    private String name;


    @GetMapping("/test")
    public String info() {
        return "Name: " + name;
    }
}
